package com.example.demo.threadDemo.aCreateThreadName;

/**
 * @Description MyThread02
 * @Author songchuanlong
 * @Date 2025-04-14
 */
public class MyThread02 extends Thread{
    public MyThread02(String name){
        super(name);
    }
    @Override
    public void run() {
        Thread n = Thread.currentThread();
        for (int i = 1; i <=3; i++) {
            System.out.println(n.getName()+"："+i);
        }
    }
}
